import ajax from '@/utils/ajax'

// 获取验证码
// export const sendCode = params => ajax.post('begin/commonSendMsg', params)
export const sendCode = params => ajax.post('login/sendVerificationCode', params)

// 登录（手机号 验证码）
// export const loginByPhone = params => ajax.post('begin/loginAppV4', params)
export const loginByPhone = params => ajax.post('login/verifyLoginByMobile', params)

// 登录（账号 密码）
export const loginByAccount = params => ajax.post('login/verifyLoginByAccount', params)

// 用户绑定手机号
export const bindPhone = params => ajax.post('login/accountBindPhone', params)

// 获取菜单权限
export const getMenuList = params => ajax.post('login/getUserResourcePermission', params)

// 是否开启手机号绑定全局提示
export const isShowBindPhoneApi = params => ajax.post('login/getIfBindPhone', params)

// 获取账号列表
export const getAccountList = params => ajax.post('login/getAccountInfos', params)
